package org.accp.pojo;

public class Notice {
    private Integer id;
    private String noName;
    private String notext;
    private String noDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNoName() {
        return noName;
    }

    public void setNoName(String noName) {
        this.noName = noName;
    }

    public String getNotext() {
        return notext;
    }

    public void setNotext(String notext) {
        this.notext = notext;
    }

    public String getNoDate() {
        return noDate;
    }

    public void setNoDate(String noDate) {
        this.noDate = noDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Notice notice = (Notice) o;

        if (id != notice.id) return false;
        if (noName != null ? !noName.equals(notice.noName) : notice.noName != null) return false;
        if (notext != null ? !notext.equals(notice.notext) : notice.notext != null) return false;
        if (noDate != null ? !noDate.equals(notice.noDate) : notice.noDate != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (noName != null ? noName.hashCode() : 0);
        result = 31 * result + (notext != null ? notext.hashCode() : 0);
        result = 31 * result + (noDate != null ? noDate.hashCode() : 0);
        return result;
    }
}
